package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.entity.BaseEntity;

/**
 * 用户
 */
@Data
@TableName("user")
public class User extends BaseEntity {
    @TableId(type = IdType.AUTO)    //主键自增长
    private Long id;     //ID
    private String username;    //用户名
    private String password;    //密码
    private String avatarPath;  //头像图片路径
    private String nickname;    //昵称
    private String sex;     //性别
    private Integer age;    //年龄
    private String mobile;    //手机
    private Integer liked;     //获赞
    private Integer send;       //发布
    private Integer concern;    //关注
    private Integer fans;   //粉丝
    @TableField(exist = false)
    private String clientUid;//客户端uid
}
